cmake_minimum_required(VERSION 3.20)
project(sound_level_data_stream)

# 设置C++标准
set(CMAKE_CXX_STANDARD 11)

include_directories(backend/model)
include_directories(/usr/local/include/modbus)
link_directories(/usr/local/lib)

# 查找Crow库
find_package(Crow)

# 添加你的Crow程序
add_executable(sound_level_data_server backend/main.cpp backend/model/SoundLevelMeter.cpp)

# 链接Crow库
target_link_libraries(sound_level_data_server PUBLIC 
    Crow::Crow 
    modbus)
